package android.support.v4.os;

import android.app.Notification;
import android.app.NotificationManager;
import de.robv.android.xposed.XposedHelpers;

public class ENotificationManager extends EHook {

	@Override
	public String getClassName() {
		return NotificationManager.class.getName();
	}

	@Override
	public void hook() {
		XposedHelpers.findAndHookMethod(getClassName(), null, 
				"notify", String.class, int.class, Notification.class,
				this);
	}

	@Override
	protected boolean before(String name, Object[] args, MethodHookParam param) {
		if(name.equals("notify")) {
			return true;
		}

		return false;
	}
}
